package net.sourceforge.web.chartjs;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class DatasetCollection {
	private final static Logger LOGGER = LoggerFactory.getLogger(DatasetCollection.class);
	private Map<String, Object> properties = new LinkedHashMap<String, Object>();
	private List<Dataset> datasets = new ArrayList<>();

	public DatasetCollection(Map<String, Object> properties) {
		super();
		this.properties = properties;
		this.properties.put("datasets", datasets);
	}

	public DatasetCollection() {
		super();
		this.properties.put("datasets", datasets);
	}

	public Map<String, Object> getProperties() {
		return properties;
	}

	public void setLabels(List<Object> xarray) {
		if (properties.containsKey("labels")) {
			LOGGER.warn("You are override xarray, please check if is this right");
		}
		properties.put("['labels", xarray);
	}

	public void addSeries(String name, List<Object> xarray) {
		if (properties.containsKey("labels")) {
			LOGGER.warn("You are override xarray, please check if is this right");
		}
	}

	public void setBorderColor(int index, String color) {
		// TODO Auto-generated method stub

	}

	public void setDotColor(int index, String color) {
		// TODO Auto-generated method stub

	}

	public void setShowLine(int index, boolean showLine) {
		// TODO Auto-generated method stub

	}
}
